//
//  MYGCloudDiskCommonHeaderView.swift
//  MYDoctor
//
//  Created by Denny on 2024/3/13.
//

import UIKit

class MYGCloudDiskCommonHeaderView: UIView {

    @IBOutlet weak var titleLB: UILabel!
    
    @IBOutlet weak var avatar: UIImageView!
    @IBAction func tapInviteMember(_ sender: UIButton) {
        MYGCloudDiskPopManager.showInviteSheet(self.rootResponsder().view)
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        self.titleLB.text = (MYGUserManager.getUser()?.doctor.name ?? "") + "创建的共享"
        self.avatar.sd_setImage(with: URL(string: MYGUserManager.getUser()?.doctor.avatar))
        self.avatar.sd_setImage(with: URL(string: MYGUserManager.getUser()?.doctor.avatar), placeholderImage: UIImage.init(named: "head"))
    }
}
